How to readonly setState to a specific type

visit shbcf.ru